package com.zretc;

import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 监控中心
 * 
 *
 */
@EnableAdminServer
@SpringBootApplication
public class MonitorApplication implements CommandLineRunner
{
    public static void main(String[] args)
    {
        SpringApplication.run(MonitorApplication.class, args);

    }
    @Value("${aaa}")
    String name;
    @Override
    public void run(String... args) throws Exception {
        System.out.println("===============================");
        System.out.println(name);
        System.out.println("===============================");
    }
}
